package com.cnc.service.Impl;

import com.cnc.dao.Impl.UserDaoImpl;
import com.cnc.dao.UserDao;
import com.cnc.entity.Admin;
import com.cnc.service.UserService;

public class UserServiceImpl implements UserService {
    UserDao userDao=new UserDaoImpl();

    public boolean login(String username,String password){
        return userDao.login(username,password)!=0;
    }

    public boolean insertAdmin(Admin a){
        return userDao.insertAdmin(a)!=0;
    }

    public boolean isHaveAdmin(String username){
        return userDao.isHaveAdmin(username)!=0;
    }
}
